<%= form_for(@event, :html => {:autocomplete => "off"}) do |f| %>
  <% if @event.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@event.errors.count, "error") %> prohibited this event from being saved:</h2>

      <ul>
      <% @event.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>
<% end %>


<%= render :partial => "form" %>
<%= button_to "Delete", @event, :confirm => "Delete event?",  :method => :delete %>

<%= link_to 'Show', @event %> |
<%= link_to 'Back', events_path %>
